package cn.vcjf.weapp.api.user.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.Date;

/**
 * <p>
    * 
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
@TableName("vc_user")
public class User extends PageModel<User> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uuId;

    /**
     * 姓名
     */
    private String name;

    /**
     * 推荐人ID
     */
    private Integer parentId;

    /**
     * 电话
     */
    private String phone;

    /**
     * 用户地址
     */
    private String address;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 头像
     */
    private String headPhoto;

    /**
     * appID
     */
    private String appId;

    /**
     * openId
     */
    private String openId;

    /**
     * 用户二维码
     */
    private String qrcode;

    /**
     * 营业开始时间
     */
    private String shopHoursBeg;

    /**
     * 营业结束时间
     */
    private String shopHoursEnd;

    /**
     * 注册时间
     */
    private Date registTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getUuId() {
        return uuId;
    }

    public void setUuId(String uuId) {
        this.uuId = uuId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public String getHeadPhoto() {
        return headPhoto;
    }

    public void setHeadPhoto(String headPhoto) {
        this.headPhoto = headPhoto;
    }
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
    public String getQrcode() {
        return qrcode;
    }

    public void setQrcode(String qrcode) {
        this.qrcode = qrcode;
    }
    public String getShopHoursBeg() {
        return shopHoursBeg;
    }

    public void setShopHoursBeg(String shopHoursBeg) {
        this.shopHoursBeg = shopHoursBeg;
    }
    public String getShopHoursEnd() {
        return shopHoursEnd;
    }

    public void setShopHoursEnd(String shopHoursEnd) {
        this.shopHoursEnd = shopHoursEnd;
    }
    public Date getRegistTime() {
        return registTime;
    }

    public void setRegistTime(Date registTime) {
        this.registTime = registTime;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "User{" +
        "id=" + id +
        ", uuId=" + uuId +
        ", name=" + name +
        ", parentId=" + parentId +
        ", phone=" + phone +
        ", address=" + address +
        ", sysUserId=" + sysUserId +
        ", nickname=" + nickname +
        ", headPhoto=" + headPhoto +
        ", appId=" + appId +
        ", openId=" + openId +
        ", qrcode=" + qrcode +
        ", shopHoursBeg=" + shopHoursBeg +
        ", shopHoursEnd=" + shopHoursEnd +
        ", registTime=" + registTime +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        "}";
    }
}
